#!/usr/bin/evn python

numbers = [12,37,5,42,8,3]

even = []
odd = []

for x in range(len(numbers)):
    print x,numbers[x],

print '\n'

while len(numbers) > 0 :
	number = numbers.pop()
	if (number % 2 == 0):
		even.append(number)
	else:
		odd.append(number)

print "Even numbers:\n"
for i in range(len(even)):
	print i,even[i],

print '\n-----------------\n'

print "Odd numbers:\n"
for j in range(len(odd)):
	print j,odd[j],


